package com.sofun.ai.service;

import dev.langchain4j.model.output.structured.Description;

import java.util.List;

public interface GaodeWeatherService {

    List<Forecasts> getWeather(String city);

    record WeatherApiResponse(
            String status,
            String count,
            String info,
            String infocode,
            List<Forecasts> forecasts) {
    }

    @Description("预报天气信息数据")
    public record Forecasts(
            @Description("省份名") String province,
            @Description("城市名") String city,
            @Description("区域编码") String adcode,
            @Description("预报发布时间") String reporttime,
            @Description("预报数据 list 结构，元素 cast,按顺序为当天、第二天、第三天的预报数据") List<Casts> casts
    ) {
    }

    @Description("天气信息数据")
    public record Casts(
            @Description("日期") String date,
            @Description("星期几") String week,
            @Description("白天天气现象") String dayweather,
            @Description("晚上天气现象") String nightweather,
            @Description("白天温度") String daytemp,
            @Description("晚上温度") String nighttemp,
            @Description("白天风向") String daywind,
            @Description("晚上风向") String nightwind,
            @Description("白天风力") String daypower,
            @Description("晚上风力") String nightpower
    ) {
    }
}
